/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package bai7;
import java.util.Scanner;
/**
 *
 * @author PhamPhuong
 */
public class Bai7 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
      System.out.print("Nhap So Giang Vien Trung Tam:");
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      GiangVien Arr[] = new GiangVien[n];
      for(int i =0; i<n/2; i++){
       Arr[i] =  new GiangVienCoHuu();
      }
      
      
      for(int i =n/2; i<n; i++){
       Arr[i] =  new GiangVienThinhGiang();
      }
      
      
      for(int i =0; i<n; i++){
       Arr[i].Nhap();
      }
      
      
      for(int i =0; i<n; i++){
        Arr[i].Xuat();
      }
        
    }
    
}
